﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="Job_Of_Company.ascx.cs"
    Inherits="TuyenDungViecLam.User_control_VN.Job_Of_Company" %>
<asp:ScriptManager ID="ScriptManager1" runat="server">
</asp:ScriptManager>
<asp:UpdatePanel ID="UpdatePanel1" runat="server">
    <ContentTemplate>
        <div class="art-Block">
            <div class="art-Block-tl">
            </div>
            <div class="art-Block-tr">
            </div>
            <div class="art-Block-bl">
            </div>
            <div class="art-Block-br">
            </div>
            <div class="art-Block-tc">
            </div>
            <div class="art-Block-bc">
            </div>
            <div class="art-Block-cl">
            </div>
            <div class="art-Block-cr">
            </div>
            <div class="art-Block-cc">
            </div>
            <div class="art-Block-body">
                <div class="art-BlockHeader">
                    <div class="art-header-tag-icon">
                        <div class="t">
                            Các việc của nhà tuyển dụng</div>
                    </div>
                </div>
                <div class="art-BlockContent" style="padding-left: 0px; padding-right: 0px">
                    <asp:GridView ID="dscongviec" runat="server" AutoGenerateColumns="False" Width="100%"
                        CellPadding="0" ForeColor="#333333" GridLines="None" AllowPaging="True" OnPageIndexChanging="dscongviec_PageIndexChanging"
                        OnRowCommand="dscongviec_RowCommand" OnRowDeleting="dscongviec_RowDeleting" OnRowDataBound="dscongviec_RowDataBound"
                        PageSize="1">
                        <RowStyle CssClass="RowsGridMain" BackColor="white" ForeColor="#333333" />
                        <Columns>
                            <asp:TemplateField HeaderText="Chức danh" SortExpression="ChucNang">
                                <ItemTemplate>
                                    <a href='<%# "SuaTinTuyenDung.aspx?Mcv=" + Eval("MaCongViec") +"&Mct=" + Eval("MaCongTy") + "&Edit=0" %>'
                                        onmousemove="BBTOnline_ShowTooltip('../VN/TootTip.aspx?Mcv=<%# Eval("MaCongViec") %>')"
                                        onmouseout="BBTOnline_HideTooltip()">
                                        <%# Eval("ChucDanh")%></a>
                                    <asp:Label ID="lbmacongviec" runat="server" Text='<%# Eval("MaCongViec") %>' Visible="false"></asp:Label>
                                </ItemTemplate>
                                <ItemStyle VerticalAlign="Top" />
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="Địa điểm" SortExpression="NoiLamViec">
                                <ItemTemplate>
                                    <asp:Label ID="Label1" runat="server" Text='<%# Eval("NoiLamViec") %>'></asp:Label>
                                </ItemTemplate>
                                <ItemStyle Width="150px" />
                            </asp:TemplateField>
                            <asp:BoundField HeaderText="Ngày đăng" DataField="NgayDang" DataFormatString="{0:dd/MM/yyyy}"
                                SortExpression="NgayDang">
                                <ItemStyle Width="120px" />
                            </asp:BoundField>
                            <asp:BoundField HeaderText="Lương" DataField="MucLuong" SortExpression="MucLuong">
                                <ItemStyle Width="120px" />
                            </asp:BoundField>
                            <asp:TemplateField>
                                <ItemTemplate>
                                    <asp:ImageButton ID="ImageButton1" CommandName="Edit" CommandArgument='<%# Eval("MaCongViec") %>' runat="server" ImageUrl="~/images/page-edit-icon.png" />&nbsp;&nbsp;
                                    <asp:ImageButton ID="ImageButton2" runat="server" CommandName="Delete" CommandArgument='<%# Eval("MaCongViec") %>'
                                        OnClientClick="if(!confirm('Bạn không muốn xóa công việc này không ?')) return false;"
                                        ImageUrl="~/images/delete-icon.png" />
                                </ItemTemplate>
                                <ItemStyle Width="100px" />
                            </asp:TemplateField>
                            <%--<asp:CommandField ShowCancelButton="False" ShowDeleteButton="True" DeleteImageUrl="~/images/delete-icon.png"
                                ShowEditButton="false" ButtonType="Image">
                                <ItemStyle HorizontalAlign="Center" Width="25px" />
                            </asp:CommandField>--%>
                        </Columns>
                        <FooterStyle BackColor="#990000" Font-Bold="True" ForeColor="White" />
                        <PagerStyle BackColor="#FFCC66" ForeColor="#333333" HorizontalAlign="Center" CssClass="PagingGrid" />
                        <SelectedRowStyle BackColor="#FFCC66" Font-Bold="True" ForeColor="Navy" />
                        <HeaderStyle CssClass="HeaderGrid" />
                        <AlternatingRowStyle CssClass="RowsGrid" />
                    </asp:GridView>
                </div>
            </div>
        </div>
    </ContentTemplate>
</asp:UpdatePanel>
